// import '@babel/polyfill';
// webpack打包入口文件
/** *打包命令
 *  webpack ./src/index.js -o ./build/bundle.js --mode=development
 */
import './css/index.css';
import './css/index.less';
import './css/iconfont.css';
import date from './data.json';
// 下一行不进行eslint语法检查
// eslint-disable-next-line
console.log(`${date.username}:${date.age}`);
const fn = (a, b) => a + b;
// eslint-disable-next-line
console.log(fn(20, 30));
const promise = new Promise((resolve) => {
  setTimeout(() => {
    // eslint-disable-next-line
        console.log('定时器执行完了~');
    resolve();
  }, 1000);
});
// eslint-disable-next-line
console.log(promise);
